Skip to content

Conversation

@HungKNguyen
Copy link
Collaborator

Apply similar changes to PSPDFKit-labs/nutrient-dws-client-typescript#8

Cutting for release under v3.0

Copy link

@nickwinder nickwinder left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Quick pass. Worth answering my comment before I look again

# Type definitions for file inputs
# Breaking change in v3.0.0: FileInput no longer includes URL strings
LocalFileInput = Path | bytes | BinaryIO
FileInputWithUrl = str | Path | bytes | BinaryIO

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this not just be a string, i.e. just url?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry I don't fully get the question, FileInputWithUrl is an union type between LocalFileInput and the type string. So you want me to write something like

FileInputWithUrl = str | LocalFileInput

instead?

HungKNguyen and others added 2 commits February 2, 2026 22:28
Co-authored-by: Nick Winder <nfxdevelopment@gmail.com>
Co-authored-by: Nick Winder <nfxdevelopment@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants